package com.catsic.mod.specification;

import com.catsic.base.conditon.Condition;
import com.catsic.base.specification.BaseSpec;
import com.catsic.base.specification.QueryWraper;
import com.catsic.mod.condition.WserviceCondition;
import com.catsic.mod.entity.Wservice;

public class WserviceSpec extends BaseSpec<Wservice>{

	public WserviceSpec(Condition condition) {
		super(condition);
	}

	@Override
	protected void addCondition(QueryWraper<Wservice> queryWraper) {
		WserviceCondition condition = (WserviceCondition) getCondition();
		addLikeConditionPrefix(queryWraper, queryWraper.getRoot().get("organ").get("code"),condition.getOrganCode());
	}
}
